<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<h1>console输出与Javascript的数据类型</h1>

<script>
    function func() {
        console.count("label");
    }
    const people = {
        "person1": {"id":"P001","fname": "san", "lname": "zhang"},
        "person2": {"id":"P002","fname": "si", "lname": "li"},
        "person3": {"id":"P003","fname": "wu", "lname": "wang"}
    };

    const fruits = ['apple','banana','oranges'];

    console.time("for-test");
    const arr = [];
    for(let i = 0; i < 100000; i++) {
        arr.push({"key": i});
    }
    console.timeEnd("for-test");

    for(let i = 0; i < 1000; i++) {
        func();
        if(i>0&& i%7==0){
            break;
        }
    }



    console.info('普通信息');
    console.log('日志信息');
    console.debug('调试信息');
    console.warn('警告信息');

    console.error('错误信息');
    console.table(people);
    console.assert(fruits.length > 5);
</script>
</body>
</html>